import type { Organization } from './type'
import request from '@/utils/request'

enum API {
  TREE = '/sysOrganization/tree',
}

export function orgTree() {
  return request<any, Organization[]>({
    url: API.TREE,
    method: 'post',
  })
}
